export default {
  data() {
    return {
      id: '',
      info: {},
    }
  },

  onLoad(e) {
    this.id = e.id
    this.getDetail()
  },
  filters: {
    formatStoreType(data) {
		  let text = 0
		  switch (Number(data)) {
		  case 0:
		    text = 'PC扫码支付'
		    break
		  case 1:
		    text = 'H5支付'
		    break
		  case 2:
		    text = '微信H5支付'
		    break
		  case 3:
		    text = 'APP支付'
		    break
		  case 4:
		    text = '小程序支付'
		    break
		  case 10:
		    text = '余额支付'
		    break
		  default:
		    text = ''
		  }
		  return text
    },
  },

  methods: {
    getDetail() {
      this.$api.user.getAssetsDetail({
        id: this.id,
      }).then(res => {
        this.info = res.data
      }).catch(e => {
        console.log(e)
      })
    }
  }
}
